#pragma once
#include <cocos2d.h>
#include "PlayerPlane.h"

USING_NS_CC;

class StateBar;

class BaseBuff : public CCNode
{
public:
	BaseBuff(void);
	~BaseBuff(void);
	
	virtual bool init();
	virtual void start(StateBar* stateBar);
	virtual void onStart(StateBar* stateBar);
	virtual void pause();
	virtual void continuee();
	virtual void stop();
	virtual void onComplete();
	virtual void onPause();
	virtual void onContinue();

	void countDownProcessing(float dt);

	CC_SYNTHESIZE_RETAIN(CCString*, _id, Id);
	CC_SYNTHESIZE_RETAIN(CCSprite*, _blackMask, BlackMask);
	CC_SYNTHESIZE_RETAIN(PlayerPlane*, _plane, Plane);
	CC_SYNTHESIZE(float, _time, Time);
	CC_PROPERTY(float, _timeMax, TimeMax);
	CC_SYNTHESIZE(bool, _isComplete, IsComplete);
	CC_SYNTHESIZE(bool, _isVisibleInStateBar, IsVisibleInStateBar);

};

